package com.irssproject.app.dao.lectorRSS.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.irssproject.app.bean.lectorRSS.Feed;
import com.irssproject.app.dao.lectorRSS.iface.FeedDAO;

public class FeedDAOImpl extends HibernateDaoSupport implements FeedDAO{


	public void insertFeed(Feed feed)
	{	
			getHibernateTemplate().save(feed);
	}


	public Feed getFeed(String urlFeed) 
	{
			return (Feed)getHibernateTemplate().find("from Feed feed where link = ?", urlFeed);
	}


	public void deleteFeed(Feed feed) {

		getHibernateTemplate().delete(feed);
	}


	public Feed getFeedByLink(Feed feed) {
		// TODO Auto-generated method stub
		return null;
	}
	


}
